package rladidxo.basic;

import java.util.Scanner;

public class J03_CatchNumber {
	public static void main(String[] args) {
		int o=1;
		while(o==1){
		Scanner sc = null;
		sc = new Scanner(System.in);
		System.out.print("숫자를 세자리 입력해주세요:");
		int num1 = sc.nextInt();
		int a,b,c;
		int num2 = 127;
		int x,y,z;
		int re;
		
		if(num1>num2){
			System.out.println("추측한 숫자가 큽니다");
		}
		else if(num1<num2){
			System.out.println("추측한 숫자가 작습니다");
		}
		else if(num1 == num2){
			System.out.println("빙고! 숫자를 맞췄습니다");break;
		}
		else {System.out.println("숫자를 잘못입력하셨습니다.");}
	}
	}

}
